home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Found / FWCommon / Include / FWStdDef.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  2.3 KB  |  99 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWStdDef.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Creation Date:        3/25/94
  7. //
  8. //    Copyright:    © 1994 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef FWSTDDEF_H
  13. #define FWSTDDEF_H
  14.  
  15. #ifdef __cplusplus
  16.   extern "C" {
  17. #endif
  18.  
  19. /*========================================================================================
  20. /  Macro definitions
  21. /
  22. /    The macro FW_SHARED_DATA should only be used for placement.  OPF is built with
  23. /    model large, so pointers are always far by default.  However, static data in DLLs
  24. /    must still have the __far keyword in order to be accessible across DLLs.
  25. /========================================================================================*/
  26.  
  27. #ifdef FW_BUILD_MAC
  28. #define FW_SHARED_DATA
  29. #endif
  30.  
  31. #ifdef FW_BUILD_WIN
  32. #if defined(FW_BUILD_WIN32S) || defined(FW_BUILD_WIN32NT)
  33. #define FW_SHARED_DATA
  34. #else
  35. #define FW_SHARED_DATA __far
  36. #endif
  37. #endif
  38.  
  39. /*========================================================================================
  40. /  Type definitions
  41. /========================================================================================*/
  42.  
  43. typedef unsigned char FW_Boolean;
  44.  
  45. #ifdef FW_BUILD_MAC
  46. typedef char** FW_PlatformHandle;
  47. #endif
  48.  
  49. #ifdef FW_BUILD_WIN16
  50. typedef unsigned FW_PlatformHandle;
  51. #endif
  52.  
  53. #ifdef FW_BUILD_WIN32S
  54. typedef void* FW_PlatformHandle;
  55. #endif
  56.  
  57. #ifdef FW_BUILD_MAC
  58. typedef unsigned long FW_ResourceType;
  59. #endif
  60.  
  61. #ifdef FW_BUILD_WIN
  62. typedef unsigned short FW_ResourceType;
  63. #endif
  64.  
  65. typedef unsigned short FW_ResourceId;
  66.  
  67. typedef unsigned short FW_Milliseconds;
  68.  
  69. typedef double FW_Float;
  70.  
  71. /*========================================================================================
  72. /  Constants
  73. /========================================================================================*/
  74.  
  75. #ifndef TRUE
  76. #define TRUE 1
  77. #endif
  78.  
  79. #ifndef FALSE
  80. #define FALSE 0
  81. #endif
  82.  
  83. #ifndef NULL
  84. #define NULL 0
  85. #endif
  86.  
  87. /*========================================================================================
  88. /  Macros
  89. /========================================================================================*/
  90.  
  91. #define FW_UNUSED(x)    ((void) &x)
  92.  
  93. #ifdef __cplusplus
  94.    }
  95. #endif
  96.  
  97. #endif
  98.  
  99.